﻿//using Kingdee.BOS.App.Data;
//using Kingdee.BOS.Contracts;
//using Kingdee.BOS.Core.Report;
//using Kingdee.BOS.Util;
//using Kingdee.K3.FIN.AR.App.Report;
//using System.ComponentModel;
//using System.Text;

//namespace Kingdee.SR.Plugin
//{
//    [Description("应收款汇总表-测试")]
//    [HotUpdate]
//    public class TestReportPlugIn:ARDetailReportService
//    {
//        private string[] customerRptTempTableNames;
//        public override void BuilderReportSqlAndTempTable(IRptParams filter, string tableName) {
//            IDBService dbservice = Kingdee.BOS.App.ServiceHelper.GetService<IDBService>();
//            customerRptTempTableNames = dbservice.CreateTemporaryTableName(this.Context,1);
//            string strTable = customerRptTempTableNames[0];

//            base.BuilderReportSqlAndTempTable(filter,strTable);

//            StringBuilder sb = new StringBuilder();
//            string strSql = "/*dialect*/select top 11 * from T_BD_MAterial";
//            DBUtils.Execute(this.Context,strSql);
//        }

//        public override void CloseReport()
//        {
//            if (customerRptTempTableNames.IsNullOrEmptyOrWhiteSpace())
//            {
//                return;
//            }
//            IDBService dbService = Kingdee.BOS.App.ServiceHelper.GetService<IDBService>();
//            dbService.DeleteTemporaryTableName(this.Context,customerRptTempTableNames);
//            base.CloseReport();
//        }
//    }
//}
